package com.abcdefg.springmvc.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("RequestMapping")
public class RequestMappingDemo {
    @RequestMapping("r1")
    public String r1(){
        return "r1";
    }
    @RequestMapping(value = "r2",method = RequestMethod.GET)
    public String r2(){
        return "r2";
    }
    @RequestMapping(value = "r3",method = RequestMethod.POST)
    public String r3(){
        return "r3";
    }
}
